package com.wx.file;

import java.io.File;
import java.util.Scanner;

/**
 * 对Scanner类进行测试
 * @author wangxun
 * @version 1.0
 * @description: TODO
 * @date 2021/1/27 11:20 上午
 */
public class ScannerTest {
    public static void main (String[] args)throws Exception {
        System.out.println(new File("javase/src/main/resources/binary").getAbsolutePath());
        Scanner scanner = new Scanner(new File("javase/src/main/resources/binary"));
        while (scanner.hasNext()){
            System.out.println(scanner.nextInt());
        }
    }
}
